package com.medical.blood.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.medical.blood.entity.TestItem;
import com.medical.blood.mapper.TestItemMapper;
import com.medical.blood.service.imp.TestItemService;
import com.medical.blood.service.imp.TestItemService;
import org.springframework.stereotype.Service;

@Service
public class TestItemServiceImpl extends ServiceImpl<TestItemMapper, TestItem> implements TestItemService {
    @Override
    public boolean saveTestItem(TestItem testItem) {
        return save(testItem);
    }

    @Override
    public boolean updateTestItem(TestItem testItem) {
        return updateById(testItem);
    }

    @Override
    public java.util.List<TestItem> listTestItemByCategory(String category) {
        return lambdaQuery().eq(TestItem::getCategory, category).list();
    }
}